/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 @import "~@app/uiTheme/less/color-schema.less";

 .dragged-item-mixin() {
  background-color: @ACTIVE_DRAG_AREA;
  border: 1px solid @ACTIVE_DRAG_AREA_BORDER;
 }

 .disabled-dragged-item-mixin() {
  background-color: @DISABLED_DRAG_AREA;
  border: 1px solid @DISABLED_DRAG_AREA_BORDER;
 }

.formLabel() {
  font-weight: 500;
  font-size: 12px;
  color: @font-color1;
}

.fontBody() {
  font-size: 12px;
  color: @font-color1;
}

.h4-mixin() {
  font-weight: 500;
  font-size: 13px;
  color: #333333;
}

.font-basic() {
  .fontBody();
  font-family: 'Inter var', sans-serif;
  font-weight: 400;
}

.unavailable-font() {
  font-size: 12px;
  color: @font-color-disabled;
}
.fixedWidthSmall() {
  font-family: Menlo;
  font-size: 11px;
  color: @font-color1;
}

.fixedWidthDefault() {
  font-family: Menlo;
  font-size: 12px;
  color: @font-color1;
}

// grid system with overflow

.grid-mixin() {
  overflow: hidden;
}

.row-horizontal-padding-mixin(@cell-padding) {
  margin-left: -@cell-padding / 2;
  margin-right: -@cell-padding / 2;
}

.cell-horizontal-padding-mixin(@cell-padding) {
  display: inline-block;
  padding-left: @cell-padding / 2;
  padding-right: @cell-padding / 2;
}


.row-vertical-padding-mixin(@cell-padding) {
  margin-top: -@cell-padding / 2;
  margin-bottom: -@cell-padding / 2;
}

.cell-vertical-padding-mixin(@cell-padding) {
  display: inline-block;
  padding-bottom: @cell-padding / 2;
  padding-top: @cell-padding / 2;
}

.row-mixin(@horizontal-padding: 0, @vertical-padding: 0) {
  .row-horizontal-padding-mixin(@horizontal-padding);
  .row-vertical-padding-mixin(@vertical-padding);
}

.cell-mixin(@horizontal-padding: 0, @vertical-padding: 0) {
  .cell-horizontal-padding-mixin(@horizontal-padding);
  .cell-vertical-padding-mixin(@vertical-padding);
}

.clear-fix-mixin() {
  &:after {
    clear: both;
    content: '';
    display: table;
    height: 0;
  }
}
.flex-row-container() {
  display: flex;
  flex-direction: row;
}
